import Layout from '@/layout'

export default {
  path: '/staff',
  component: Layout,
  meta: {
    title: '员工管理',
    icon: 'el-icon-user-solid'
  },
  children: [
    {
      path: 'courier',
      meta: {
        title: '快递员管理'
      },
      component: () => import('@/views/Staff/courier')
    },
    {
      path: 'scopeofwork',
      meta: { title: '作业分布范围' },
      component: () =>
        import('@/views/Staff/courier/components/scope-of-work.vue')
    },
    {
      path: 'driver',
      meta: {
        title: '司机管理'
      },
      component: () => import('@/views/Staff/driver')
    },
    {
      path: 'driverdetails',
      meta: { title: '司机详情' },
      component: () =>
        import('@/views/Staff/driver/components/driver-details.vue')
    },
    {
      path: 'workday',
      meta: {
        title: '排班管理'
      },
      component: () => import('@/views/Staff/workday')
    }
  ]
}
